import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/views/Login'
import Home from '@/views/Home'
import Welcome from '@/views/welcome/Welcome'
import users from '@/views/user/users'
import roles from '@/views/right/roles'
import rights from '@/views/right/rights'
import reports from '@/views/reports/reports'
import orders from '@/views/orders/orders'
import goods from '@/views/goods/goods'
import params from '@/views/goods/params'
import categories from '@/views/goods/categories'
import addgoods from '@/views/goods/addgoods'
import RegEnt from '@/views/RegEnt/RegEnt'
import InfMan from '@/views/RegEnt/InfMan'
// import ChFoEn from '@/views/ChFoEn/ChFoEn'
import CaExQu from '@/views/ChFoEn/CaExQu'
import ChFoEn from '@/views/ChFoEn/ChFoEn'
import CoRoAp from '@/views/CoRoAp/CoRoAp'
import CoRoApApply from '@/views/CoRoAp/CoRoApApply'
import Repair from '@/views/CoRoAp/Repair'
import ChinFo from '@/views/CoRoAp/ChinFo'
import Rent from '@/views/CoRoAp/Rent'
import InCoReg from '@/views/InCoReg/InCoReg'
import InCoCha from '@/views/InCoReg/InCoCha'
import TraReg from '@/views/InCoReg/TraReg'
import Patent from '@/views/InCoReg/Patent'
import LegSer from '@/views/InCoReg/LegSer'
import ParSer from '@/views/ParSer/ParSer'
import ParSerlist from '@/views/ParSer/ParSerlist'
import EnvGre from '@/views/ParSer/EnvGre'
import DecSer from '@/views/ParSer/DecSer'
import ITCSer from '@/views/ParSer/ITCSer'
import Phone from '@/views/ParSer/Phone'
import Infor from '@/views/Infor/Infor'
import news from '@/views/Infor/news'
import announcement from '@/views/Infor/announcement'
import slide_show from '@/views/Infor/slide_show'
import merchants from '@/views/Infor/merchants'
import parkshows from '@/views/Infor/parkshows'


console.log(123)

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/',
      name: 'Home',
      component: Home,
      redirect: {
        path: 'welcome'
      },
      children: [{
          name: 'Welcome',
          path: 'welcome',
          component: Welcome
        },{
          name: 'RegEnt',
          path: 'RegEnt',
          component: RegEnt
        }, {
          name: 'InfMan',
          path: 'InfMan',
          component: InfMan
        }, {
          name: 'ChFoEn',
          path: 'ChFoEn',
          component: ChFoEn
        }, {
          name: 'CaExQu',
          path: 'CaExQu',
          component: CaExQu
        }, {
          name: 'CoRoAp',
          path: 'CoRoAp',
          component: CoRoAp
        }, {
          name: 'CoRoApApply',
          path: 'CoRoApApply',
          component: CoRoApApply
        }, {
          name: 'Repair',
          path: 'Repair',
          component: Repair
        },{
          name: 'ChinFo',
          path: 'ChinFo',
          component: ChinFo
        }, {
          name: 'Rent',
          path: 'Rent',
          component: Rent
        }, {
          name: 'InCoReg',
          path: 'InCoReg',
          component: InCoReg
        }, {
          name: 'InCoCha',
          path: 'InCoCha',
          component: InCoCha
        }, {
          name: 'TraReg',
          path: 'TraReg',
          component: TraReg
        }, {
          name: 'Patent',
          path: 'Patent',
          component: Patent
        },{
          name: 'LegSer',
          path: 'LegSer',
          component: LegSer
        }, {
          name: 'ParSer',
          path: 'ParSer',
          component: ParSer
        }, {
          name: 'ParSerlist',
          path: 'ParSerlist',
          component: ParSerlist
        },{
          name: 'EnvGre',
          path: 'EnvGre',
          component: EnvGre
        }, {
          name: 'DecSer',
          path: 'DecSer',
          component: DecSer
        }, {
          name: 'ITCSer',
          path: 'ITCSer',
          component: ITCSer
        }, {
          name: 'Phone',
          path: 'Phone',
          component: Phone
        }, {
          name: 'Infor',
          path: 'Infor',
          component: Infor
        },{
          name: 'news',
          path: 'news',
          component: news
        },{
          name: 'announcement',
          path: 'announcement',
          component: announcement
        },{
          name: 'slide_show',
          path: 'slide_show',
          component: slide_show
        },{
          name: 'merchants',
          path: 'merchants',
          component: merchants
        },{
          name: 'parkshows',
          path: 'parkshows',
          component: parkshows
        }
      ]
    }
  ]
})
